/*
 * File:   RoutingMessage.cpp
 * Author: henrya
 *
 * Created on June 26, 2009, 10:55 PM
 */

#include "RoutingMessage.h"
#include <stdlib.h>

RoutingMessage::RoutingMessage(RoutingTable* table) : Message(ROUTING), table(NULL) {
    this->table = new RoutingTable(table);
    if (this->table==NULL) {
        exit(2);
    }
}

RoutingMessage::~RoutingMessage() {
    if (table!=NULL) {
        delete table;
    }
}

void* RoutingMessage::getMessage() {
    return table;
}

